﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace T.Contract.Repository.Migrations
{
    /// <inheritdoc />
    public partial class 合同上下文 : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "ContractModel",
                columns: table => new
                {
                    ContractId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    ContractGuid = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    User_Id = table.Column<int>(type: "int", nullable: true),
                    ContractNumber = table.Column<int>(type: "int", nullable: true),
                    ContractTitle = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Unit = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    PersonCharge = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    LineId = table.Column<int>(type: "int", nullable: true),
                    TonPrice = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
                    Ton = table.Column<int>(type: "int", nullable: true),
                    CharteredBusPrice = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
                    Attn = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    DateofSigning = table.Column<DateTime>(type: "datetime2", nullable: true),
                    ContractAmount = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
                    ContractNote = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    ContractTerms = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    ContractText = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    CcontractStatus = table.Column<int>(type: "int", nullable: true),
                    Approver = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    ContractType = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    ContractClassification = table.Column<int>(type: "int", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_ContractModel", x => x.ContractId);
                });
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "ContractModel");
        }
    }
}
